package com.luojing.springcloud.MQ;/**
 * Created by luojing on 2017/6/6.
 */

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author
 * @create 2017-06-06 16:40
 **/

@Component
public class ReceiverFanout {

    @RabbitListener(queues="fanout.A")    //监听器监听指定的Queue
    public void process2(String str) {
        System.out.println("messages:"+str);
    }

}
